<?php

namespace App\Models\User;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserRole extends BaseModel
{
    use SoftDeletes;

    public $timestamps = true;
    public $table = 'user_role';
    static $unguarded = true;

    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';

    protected $hidden = ['deleted_at', 'create_time', 'update_time'];

    public function freshTimestamp()
    {
        return time();
    }

    public function fromDateTime($value)
    {
        return $value;
    }
}
